package net.liteheaven.xblib.common.io;

import android.content.Context;
import android.os.Environment;

import java.io.File;

public class PathUtil {
	
	public static String getDICMPath(Context ctx)
	{		
		String strStatus = Environment.getExternalStorageState();
		if(strStatus.equals(Environment.MEDIA_MOUNTED))
		{
			File fDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
			fDir.mkdir();
			return fDir.toString();
		}
		else
		{
			return null;
		}
	}
}
